home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / business / reportrc / install.bat < prev    next >
Encoding:
DOS Batch File  |  1992-10-01  |  2.4 KB  |  57 lines

  1. @echo off
  2. if "%1%"=="" goto bad
  3. For %%x In (a,b,c,d,e,f,g,h,i) Do If %%x == %1 goto option_1
  4. For %%x In (A,B,C,D,E,F,G,H,I) Do If %%x == %1 goto option_1
  5. For %%x In (a:,b:,c:,d:,e:,f:,g:,h:,i:) Do If %%x == %1 goto option_2
  6. For %%x In (A:,B:,C:,D:,E:,F:,G:,H:,I:) Do If %%x == %1 goto option_2
  7. For %%x In (j,k,l,m,n,o,p,q,r) Do If %%x == %1 goto option_1
  8. For %%x In (J,K,L,M,N,O,P,Q,R) Do If %%x == %1 goto option_1
  9. For %%x In (j:,k:,l:,m:,n:,o:,p:,q:,r:) Do If %%x == %1 goto option_2
  10. For %%x In (J:,K:,L:,M:,N:,O:,P:,Q:,R:) Do If %%x == %1 goto option_2
  11. For %%x In (s,t,u,v,w,x,y,z) Do If %%x == %1 goto option_1
  12. For %%x In (S,T,U,V,W,X,Y,Z) Do If %%x == %1 goto option_1
  13. For %%x In (s:,t:,u:,v:,w:,x:,y:,z:) Do If %%x == %1 goto option_2
  14. For %%x In (S:,T:,U:,V:,W:,X:,Y:,Z:) Do If %%x == %1 goto option_2
  15. goto bad
  16. :option_1
  17. cls
  18. echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  19. echo                REPORTRAC will be installed on %1%:\reportrc
  20. echo ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  21. echo .
  22. echo If this is NOT correct, hold down the CTRL key and press C.  When prompted
  23. echo "Terminate batch file (Y/N)?"  type Y.   Then, rerun this program with the
  24. echo proper information.  If this IS correct, then
  25. pause
  26. cls
  27. md %1%:\reportrc
  28. rt102s %1%:\reportrc
  29. copy rt.bat %1%:\
  30. goto end
  31. :option_2
  32. cls
  33. echo ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  34. echo                REPORTRAC will be installed on %1%\reportrc
  35. echo ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  36. echo .
  37. echo If this is NOT correct, hold down the CTRL key and press C.  When prompted
  38. echo "Terminate batch file (Y/N)?"  type Y.   Then, rerun this program with the
  39. echo proper information.  If this IS correct, then
  40. pause
  41. cls
  42. md %1%\reportrc
  43. rt102s %1%\reportrc
  44. copy rt.bat %1%\
  45. goto end
  46. :bad
  47. cls
  48. echo --------------------------------------------------------------------------
  49. echo USAGE:  install [Destination]
  50. echo WHERE:
  51. echo    [Destination] is the drive where REPORTRAC is to be installed.
  52. echo      Usually, this is C
  53. echo --------------------------------------------------------------------------
  54. echo EXAMPLE:  install c        [do NOT include a colon after the drive letter]
  55. echo --------------------------------------------------------------------------
  56. :end
  57.